package com.zzyl.nursing.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("family_member_elder")
public class FamilyMemberElder extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("elder_id")
    private Long elderId; // 老人ID

    @TableField("family_member_id")
    private Long familyMemberId; // 家属ID

    @TableField("remark")
    private String remark; // 备注

    @ApiModelProperty(value = "创建者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String createBy; // 创建人ID

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime; // 创建时间

    @TableField("update_by")
    private String updateBy; // 更新人ID

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime; // 更新时间

}